github.com/gotd/td/mtproto.Conn.messageIDBuf (field)
6 uses
github.com/gotd/td/mtproto (current package)
conn.go#L69: messageIDBuf MessageBuf // replay attack protection
conn.go#L164: messageIDBuf: proto.NewMessageIDBuf(100),
handle_container.go#L38: if c.messageIDBuf == nil || c.messageIDBuf.Consume(msg.ID) {
read.go#L107: if !c.messageIDBuf.Consume(msg.MessageID) {
session.go#L146: if b, ok := c.messageIDBuf.(interface{ Reset() }); ok {
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |